import 'package:flutter/material.dart';
import 'package:flutter_jd/pages/tabbar/category/controller.dart';
import 'package:flutter_jd/ui/pages/category/cate_menu.dart';
import 'package:flutter_jd/ui/pages/category/cate_list.dart';
import 'package:flutter_jd/ui/pages/category/top_bar.dart';
import 'package:flutter_jd/ui/widgets/body/top_bar.dart';
import 'package:get/get_state_manager/get_state_manager.dart';
import 'package:get/route_manager.dart';
import 'package:get/get.dart';

// 分类
class Category extends GetView<CategoryController> {
  final Map arguments;
  Category({required this.arguments});

  @override
  Widget build(BuildContext context) {
    Get.put(CategoryController());
    return Scaffold(
      appBar: TopBar(
        height: 0,
        brightness: Brightness.light,
        backgroundColor: Colors.white,
      ),
      body: Column(
        children: <Widget>[
          CategoryTopBar(
            arguments: arguments,
          ),
          Expanded(
            child: Row(
              children: [
                CategoryMenu(),
                CategoryList(),
              ],
            ),
          ),
        ],
      ),
    );
  }
}
